//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.example.aaaatest.a2;

import java.io.Serializable;
import java.util.Objects;

public final class ResultCode implements Serializable {
    private static final long serialVersionUID = -3120636736734857509L;
    private final String code;
    private final String desc;

    /*a
     DispatchDiverInfoDTO dispatchDiverInfoDTO = new DispatchDiverInfoDTO();
                            dispatchDiverInfoDTO.setDriverId(driverInfo.getDriverId());
                            dispatchDiverInfoDTO.setDriverPhone(driverInfo.getDriverPhone());
                            dispatchDiverInfoDTO.setDriverName(driverInfo.getDriverName());

                            dispatchDiverInfoDTO.setDriverUniqueId(driverInfo.getDriverUniqueId());
                            dispatchDiverInfoDTO.setLicensePlate(driverInfo.getCarPlate());
                            BeanUtils.copyPropertie                                                                                                                                                                                                                                      s(travelingRideInfo, dispatchDiverInfoDTO);
                            dispatchDiverInfoDTO.setCpName(EtravelConfig.showCpName(multipleRecordV2.getCpCode()));
                            dispatchDiverInfoDTO.setSubmitEstimatePrice(multipleRecordV2.getEstimatePrice());
                            dispatchDiverInfoDTO.setRouteId(routeId);
                            // 运力策略. 实付
                            dispatchDiverInfoDTO.setRideStrategy(multipleRecordV2.getRideStrategy());
                            dispatchDiverInfoDTO.setCpOrderId(multipleRecordV2.getCpOrderId());
                            dispatchDiverInfoDTO.setCarType(driverInfo.getCarType());
                            dispatchDiverInfoDTO.setDriverGrade(driverInfo.getDriverGrade());
                            dispatchDiverInfoDTO.setPos(geoUtils.getPos(driverInfo.getLon(), driverInfo.getLat()));
                            dispatchDiverInfoDTOS.add(dispatchDiverInfoDTO);
     */

    private ResultCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static ResultCode create(String code, String desc) {
        return new ResultCode(code, desc);
    }

    public boolean equals(Object o) {
        if (this == o) {
            return true;
        } else if (o != null && this.getClass() == o.getClass()) {
            ResultCode that = (ResultCode)o;
            return Objects.equals(this.code, that.code);
        } else {
            return false;
        }
    }

    public int hashCode() {
        return Objects.hash(new Object[]{this.code});
    }

    public String getCode() {
        return this.code;
    }

    public String getDesc() {
        return this.desc;
    }

    public String toString() {
        return "ResultCode(code=" + this.getCode() + ", desc=" + this.getDesc() + ")";
    }
}
